const { defineConfig } = require('@vue/cli-service')
const path = require('path')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 8082,
    headers: {
      'Access-Control-Allow-Origin':'*'
    }
  },
  publicPath: 'http://localhost:8082/',
  // webpack配置
  configureWebpack: {
    output: {
      library: 'appshop',
      libraryTarget: 'umd',
      // chunkLoadingGlobal: `webpackJsonp_${name}`
    },
    resolve: {
      alias: {
        '@@': path.resolve(__dirname, 'src/assets/img'),
        'views': path.resolve(__dirname, 'src/views'),
        '_c': path.resolve(__dirname, 'src/components')
      }
    }
  }
})